package com.regex.web.entity.gen;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.regex.web.common.excel.annotation.ExcelField;
import com.regex.web.entity.StrIdBaseEntity;

/**
 * <p>
 * 
 * </p>
 *
 * @author ocean.ma
 * @since 2019-07-23
 */
@TableName("gen_database")
public class DatabaseDTO extends StrIdBaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 数据库名
     */
    @TableField("db_name")
    private String dbName;

    /**
     * 数据链接
     */
    @TableField("db_host")
    private String dbHost;

    /**
     * 驱动
     */
    @TableField("db_driver_name")
    private String dbDriverName;

    /**
     * 端口号
     */
    @TableField("db_port")
    private String dbPort;

    /**
     * 用户名
     */
    @TableField("db_user_name")
    private String dbUserName;

    /**
     * 密码
     */
    @TableField("db_password")
    private String dbPassword;

    /**
     * 数据库类型
     */
    @TableField("db_type")
    private String dbType;

    
    @ExcelField(title="数据库名", type=1, align=2 , sort=1)
    public String getDbName() {
        return dbName;
    }

    public void setDbName(String dbName) {
        this.dbName = dbName;
    }
    
    @ExcelField(title="数据链接", type=1, align=2 , sort=2)
    public String getDbHost() {
        return dbHost;
    }

    public void setDbHost(String dbHost) {
        this.dbHost = dbHost;
    }
    
    @ExcelField(title="驱动", type=1, align=2 , sort=3)
    public String getDbDriverName() {
        return dbDriverName;
    }

    public void setDbDriverName(String dbDriverName) {
        this.dbDriverName = dbDriverName;
    }
    
    @ExcelField(title="端口号", type=1, align=2 , sort=4)
    public String getDbPort() {
        return dbPort;
    }

    public void setDbPort(String dbPort) {
        this.dbPort = dbPort;
    }
    
    @ExcelField(title="用户名", type=1, align=2 , sort=5)
    public String getDbUserName() {
        return dbUserName;
    }

    public void setDbUserName(String dbUserName) {
        this.dbUserName = dbUserName;
    }
    
    @ExcelField(title="密码", type=1, align=2 , sort=6)
    public String getDbPassword() {
        return dbPassword;
    }

    public void setDbPassword(String dbPassword) {
        this.dbPassword = dbPassword;
    }
    
    @ExcelField(title="数据库类型", type=1, align=2 , sort=7)
    public String getDbType() {
        return dbType;
    }

    public void setDbType(String dbType) {
        this.dbType = dbType;
    }

    @Override
    protected Serializable pkVal() {
        return super.pkVal();
    }

    @Override
    public String toString() {
        return "DatabaseDTO{" +
        "dbName=" + dbName +
        ", dbHost=" + dbHost +
        ", dbDriverName=" + dbDriverName +
        ", dbPort=" + dbPort +
        ", dbUserName=" + dbUserName +
        ", dbPassword=" + dbPassword +
        ", dbType=" + dbType +
        "}";
    }
}
